package com.ducanh.doan.ui.screen;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ducanh.doan.R;
import com.ducanh.doan.database.SQLiteHelper;

public class MainFragment extends BaseFragment {

	public static MainFragment newInstance(Bundle args) {
		MainFragment f = new MainFragment();
		f.setArguments(args);
		return f;
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		SQLiteHelper db = new SQLiteHelper(getActivity());
		db.getWritableDatabase();
		db.close();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Log.d("ducanh", "hello");
		View view = inflater.inflate(getLayoutId(), container, false);
		return view;
	}

	@Override
	public int getLayoutId() {
		return R.layout.home_portrait;
	}

	@Override
	public int getContainerId() {
		return R.id.main_container;
	}

	@Override
	public void loadResource() {
		
	}
}
